﻿<Controls:SinacorWindow
    
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"    
    xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
    xmlns:Validation="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.Validation;assembly=Sinacor.Infra.UI.Controls"
    xmlns:Edit="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.Edit;assembly=Sinacor.Infra.UI.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"    
    mc:Ignorable="d"    
    WindowStartupLocation="CenterScreen" 
    AutoContentHeight="False" 
    AutoContentWidth="True"
    WindowState="Normal" 
	Width="440px"
	Height="410px"
    Title="{DynamicResource Bovespa.Movimento.Label.ControleMovimento}"
	x:Class="Sinacor.UI.Bovespa.Movimento.View.SmartClient.ControleMovimento"
    ModulePlus="False"
    ModuleId="ORD"
    >
    <Controls:SinacorExpanderContainer x:Name="ExpanderContainer"
                                       VerticalAlignment="Stretch">

        <Controls:SinacorExpander IsExpanded="True" x:Name="expPrincipal" AllowExpand="False" >
            <Grid>
                <StackPanel>
                    <Controls:SinacorGroupBox HorizontalAlignment="Stretch"
                                          VerticalAlignment="Stretch"
                                          Header=""
                                          Height="Auto"
                                          Width="Auto"
                                          Margin="0,-5,0,0">
                        <Grid VerticalAlignment="Stretch">
                            <Controls:SinacorLabel HorizontalAlignment="Left"
                                               Content="{DynamicResource Bovespa.Movimento.Label.DataAtual}"
                                               Width="140"/>
                            <Controls:SinacorDatePicker HorizontalAlignment="Left"
                                                 VerticalAlignment="Top"
                                                 Value="{Binding DataAtualSistema.Valor}"                                                 
                                                 Margin="145,0,0,0"                                                 
                                                 ToolTip="{DynamicResource Bovespa.Movimento.Tooltip.DataAtualSistema}"
                                                 x:Name="dtpDataAtual" 
                                                 IsEnabled="False"  />
                            <Controls:SinacorLabel HorizontalAlignment="Left"
                                               Width="140"
                                               Content="{DynamicResource Bovespa.Movimento.Label.DataMovimentoD0}"
                                               VerticalAlignment="Top"
                                               Margin="0,25,0,0"/>
                            <Controls:SinacorDatePicker Margin="145,25,0,0"
                                                 Value="{Binding DataMovimento}"                                                 
                                                 VerticalAlignment="Top"
                                                 HorizontalAlignment="Left"                                                 
                                                 ToolTip="{DynamicResource Bovespa.Movimento.Tooltip.DataMovimentoD0}"
                                                 x:Name="dtpDataMovimentoD0"
                                                 IsEnabled="False" />
                            <Controls:SinacorLabel HorizontalAlignment="Left"
                                               Width="140"
                                               Content="{DynamicResource Bovespa.Movimento.Label.DataMovimentoD1}"
                                               VerticalAlignment="Top"
                                               Margin="0,50,0,0"/>
                            <Controls:SinacorDatePicker Margin="145,50,0,0"
                                                 Value="{Binding DataMovimentoD1}"
                                                 VerticalAlignment="Top"
                                                 HorizontalAlignment="Left"                                                                                                  
                                                 ToolTip="{DynamicResource Bovespa.Movimento.Tooltip.DataMovimentoD1}"
                                                 x:Name="dtpDataMovimentoD1"
                                                 IsEnabled="False" />

                            <Controls:SinacorTextBlock HorizontalAlignment="Left"
                                                   VerticalAlignment="Top"                                                   
                                                   Margin="10,85,0,0"
                                                   Width="360"
                                                   Height="55"
                                                   TextWrapping="Wrap"
                                                   d:IsHidden="True" x:Name="txbInformacao"/>

                        </Grid>
                    </Controls:SinacorGroupBox>

                    <Controls:SinacorGroupBox Header="{DynamicResource Bovespa.Movimento.Label.Opcoes}" 
                                          HorizontalAlignment="Stretch"
                                          VerticalAlignment="Stretch"
                                          Height="100"
                                          Width="Auto"
                                          Margin="0,2,0,0"
                                          Visibility="Collapsed" x:Name="grbOpcoes">
                        <Grid>
                            <Controls:SinacorRadioButton VerticalAlignment="Top"
                                                     Content="{DynamicResource Bovespa.Movimento.Label.SimularFechamentoBolsa}"
                                                     Width="370"
                                                     Margin="0,0,0,0"
                                                     GroupName="opcoes"
                                                     HorizontalAlignment="Left"
													 TabIndex="0"
                                                     x:Name="rbtSimularFechamento"/>
                            <Controls:SinacorRadioButton VerticalAlignment="Top"
                                                     Content="{DynamicResource Bovespa.Movimento.Label.EfetuarConsolidacao}"
                                                     Width="370"
                                                     HorizontalAlignment="Left"
                                                     Margin="0,25,0,0"
                                                     GroupName="opcoes"
													 TabIndex="1"
                                                     x:Name="rbtEfetuarConsolidacao"/>
                            <Controls:SinacorRadioButton VerticalAlignment="Top"
                                                     Content="{DynamicResource Bovespa.Movimento.Label.Fechamento}"
                                                     Width="370"
                                                     HorizontalAlignment="Left"
                                                     Margin="0,50,0,0"
                                                     GroupName="opcoes"
													 TabIndex="2"
                                                     x:Name="rbtFechamento"/>
                        </Grid>
                    </Controls:SinacorGroupBox>

                    <StackPanel Height="Auto" Margin="0,10,0,0" x:Name="GridBotoes" Orientation="Horizontal" HorizontalAlignment="Right" FlowDirection="RightToLeft" Width="Auto" VerticalAlignment="Stretch">
                        <Controls:SinacorButton HorizontalAlignment="Left"
                                        Margin="4,0,0,0"
                                        VerticalAlignment="Top"
                                        Width="70"
                                        Content="{DynamicResource Bovespa.Movimento.Label.Sair}"
										TabIndex="6"
										d:IsHidden="True"
                                        x:Name="btnSair"
                                        Click="btnSair_Click" 
                                        IsDefault="True" 
                                        Visibility="Collapsed" 
                                        ClearServiceErrors="True"/>
                        <Controls:SinacorButton HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Content="{DynamicResource Bovespa.Movimento.Label.AberturaD1}"
                                        Margin="4,0,0,0"
                                        Width="120"
										TabIndex="4"
										d:IsHidden="True" 
                                        x:Name="btnAbertura" 
                                        Click="btnAbertura_Click"
                                        Visibility="Collapsed"
                                        ClearServiceErrors="True" />
                        <Controls:SinacorButton VerticalAlignment="Top"
                                        Content="{DynamicResource Bovespa.Movimento.Label.ReaberturaD0}"
                                        Margin="4,0,0,0"
                                        Width="120"
                                        HorizontalAlignment="Left"
										TabIndex="5"
										d:IsHidden="True"
                                        x:Name="btnReabertura"
                                        Click="btnReabertura_Click"
                                        Visibility="Collapsed"
                                        ClearServiceErrors="True" />
                        <Controls:SinacorButton HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Content="{DynamicResource Bovespa.Movimento.Label.Executar}"
                                        Margin="4,0,0,0"
                                        Width="100"
										TabIndex="7" 
                                        x:Name="btnExecutar"
                                        Click="btnExecutar_Click"
                                        Visibility="Collapsed"
                                        ClearServiceErrors="True" />
                    </StackPanel>
                </StackPanel>
            </Grid>
        </Controls:SinacorExpander>

    </Controls:SinacorExpanderContainer>
</Controls:SinacorWindow>